<?php

require_once 'db.php';

class works extends db {

    public $start;
    public $end;


    public function select(){
        $this->getConnection();
        
        $query = "SELECT * FROM works LIMIT $this->start, $this->end ";
        
        $works = $this->query($query);
        return $works;
    }
   
}